class User{

    constructor(name,  password){
        this.name = name;
        this.password = password;
        this.collection = [];
    }
}

let UserData = [];
export const getUserData = () => {
    return UserData;
}
export const addUser = (name, password) => {
    UserData.push(new User(name, password));
}